package com.simple.portal.web;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import freemarker.template.TemplateException;

@Controller
@RequestMapping("/orgz")
public class OrgzController extends AbstractPortalBaseController{
	private final static String JSP_PATH = "_Orgz";
	

	@RequestMapping("/init")  
    public String init(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

        
        //enterpriseList(request, response);
        //partnerList(request, response);
        return  enterpriseList(request, response);
    }
	
	@RequestMapping("/enterprise/add")  
    public String enterpriseAdd(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

        
        return getJspPath("enterprise_add");
    }
	
	@RequestMapping("/enterprise/edit")  
    public String enterpriseEdit(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

      
        return getJspPath("enterprise_edit");
    }
	
	@RequestMapping("/enterprise/control")  
    public void enterpriseControl(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

    }

	@RequestMapping("/enterprise/list")  
    public String enterpriseList(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

      
        return getJspPath("enterprise_list");
    }
	
	@RequestMapping("/partner/add")  
    public String partnerAdd(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

        return getJspPath("partner_add");
    }
	
	@RequestMapping("/partner/edit")  
    public String partnerEdit(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {
		

      
        return getJspPath("partner_edit");
    }
	
	@RequestMapping("/partner/control")  
    public void partnerControl(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

    }
	
	
	@RequestMapping("/partner/list")  
    public String partnerList(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

      
        return getJspPath("partner_list");
    }
	
	@RequestMapping("/audit/list")  
    public String auditList(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

        return getJspPath("audit_list");
    }
	
	@RequestMapping("/audit/check")  
    public void auditCheck(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {
	
    }
	
	@RequestMapping("/enterprise/register")  
    public String enterpriseRegister(final HttpServletRequest request, final HttpServletResponse response) throws IOException, TemplateException  {

      
        return getJspPath("enterprise_register");
    }
	
	@Override
    protected String getBaseJspPath() {
        return JSP_PATH;
    }
}

